package com.xh.bussiness.jingyou.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xh.bussiness.jingyou.model.JYUserInterfaceLast;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 菁优网用户接口调用限制 Mapper 接口
 * </p>
 *
 * @author JQM
 * @since 2019-11-11
 */
public interface JYUserInterfaceLastMapper extends BaseMapper<JYUserInterfaceLast> {

    List<JYUserInterfaceLast> queryAvailableUser(@Param("type") Integer type,@Param("userType") String userType);

    public Integer updateUserInterfaceLastCount(@Param("user_id") String userId,@Param("type") Integer type);

    Integer initUserUsedCount();
}
